package com.summerbird.mallchat.common.common.utils;

import com.summerbird.mallchat.common.common.domain.dto.RequestInfo;

public class RequestHolder {

    public static final ThreadLocal<RequestInfo> threadLocal = new ThreadLocal<>();

    public static void set(RequestInfo requestInfo){
        threadLocal.set(requestInfo);
    }

    public static RequestInfo get(){
        return threadLocal.get();
    }

    public static void remove(){
        threadLocal.remove();;
    }

}
